package cn.fl.insurance.service;

import cmm.mid.core.framework.page.DataResultVO;
import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.insurance.condition.InsCompChnPolQueryCondition;
import cn.fl.insurance.dto.InsCompChnPolDTO;
import cn.fl.insurance.vo.InsCompChnPolVO;

import java.util.List;

/**
 * @Description: 渠道政策 客户端服务层接口
 * 业务层方法名称前缀：
 * 新增：add*
 * 删除：remove*
 * 修改：modify*
 * 批量：batch*
 * 查询对象：select* get*
 * 查询集合：search*
 */
public interface IInsCompChnPolService {

    /**
     * 获取唯一对象
     *
     * @param id 主键
     * @return 对象DTO
     */
    public InsCompChnPolVO selectById(Long id) throws BaseException;

    /**
     * 新增
     *
     * @param entity
     * @return
     */
    public Long add(InsCompChnPolVO entity) throws BaseException;

    /**
     * 批量新增InsCompChnPol
     *
     * @param entityList
     * @return
     * @throws BaseException
     */
    public Boolean batchAddInsCompChnPol(List<InsCompChnPolVO> entityList) throws BaseException;

    /**
     * 批量删除
     *
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids) throws BaseException;

    /**
     * 修改
     *
     * @param entity
     * @return
     */
    public boolean modify(InsCompChnPolVO entity) throws BaseException;

    /**
     * 分页查询所有
     *
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page) throws BaseException;

    /**
     * 根据条件查询所有
     *
     * @param condition
     * @return
     */
    public List<InsCompChnPolDTO> searchList(InsCompChnPolQueryCondition condition) throws BaseException;

    /**
     * 查询保险险种数据字典
     *
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchInsTypCdList() throws BaseException;

    /**
     * 查询保险产品类型数据字典
     *
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchPrdTypCdList() throws BaseException;

    /**
     * 查询返利性质
     *
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchRebNatCdList() throws BaseException;

    /**
     * 保险支公司一次性渠道申请
     *
     * @param entityList
     * @return
     * @throws BaseException
     */
    public DataResultVO addChnPolApply(List<InsCompChnPolVO> entityList) throws BaseException;
}
